package com.ruoyi.service.entity.item;

import com.ruoyi.service.domain.ServiceItems;

import java.util.List;

/**
 * 服务项目套餐关系体
 *
 * @author ZDL
 */
@lombok.Data
public class PCItemVO {

    /**
     * 服务项目的id
     */
    private Long id;
    /**
     * 服务项目分类名称
     */
    private String cateName;
    /**
     * 服务介绍
     */
    private String desc;
    /**
     * 温馨提示
     */
    private String tip;
    /**
     * 图片地址
     */
    private String image;
    /**
     * 服务项目名称
     */
    private String name;
    /**
     * 服务的基础价格：多套餐的取价格最低的那个套餐价格
     */
    private Long price;

    private String code;//启用，停用
    private String status;//启用，停用

    /**
     * 规格数组/套餐数组
     */
    private List<PCComboVO> specifications;

    public PCItemVO(ServiceItems itemNode) {
        this.id = itemNode.getItemId();
        this.name = itemNode.getItemName();
        this.desc = itemNode.getItemDescription();
        this.tip = itemNode.getItemTip();
        this.image = itemNode.getItemPicture();
        this.price = itemNode.getItemPrice();
        if ("0".equals(itemNode.getItemUseFlag())){
            this.code = "normal";
            this.status = "启用";
        }else {
            this.code = "stop";
            this.status = "停用";
        }
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getCateName() { return cateName; }
    public void setCateName(String value) { this.cateName = value; }

    public String getDesc() { return desc; }
    public void setDesc(String value) { this.desc = value; }

    public String getImage() { return image; }
    public void setImage(String value) { this.image = value; }

    public String getName() { return name; }
    public void setName(String value) { this.name = value; }

    public Long getPrice() { return price; }
    public void setPrice(Long value) { this.price = value; }

    public List<PCComboVO> getSpecifications() {
        return specifications;
    }

    public void setSpecifications(List<PCComboVO> specifications) {
        this.specifications = specifications;
    }

    public PCItemVO() {
    }

}
